#coding=utf-8
#author__ = "jack"

# 序列化
from rest_framework import serializers
from .models import UserBase

class UserBaseSerializer(serializers.ModelSerializer):
    class Meta:
        model = UserBase
        #fields = ('id','mobile','desc','sex')  #这里表示将要显示的字段
        fields ='__all__'   #表示最终序列化返回的所有字段